package com.houxy.service.impl;

import com.houxy.repository.model.entity.Department;
import com.houxy.repository.model.entity.Hospital;
import com.houxy.service.DepartmentService;
import com.houxy.service.HospitalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class InitJsService {

    @Autowired
    private HospitalService hospitalService;

    @Autowired
    private DepartmentService departmentService;

    public List<Hospital> findAllHospital() {
        return hospitalService.findAll();
    }

    public List<Department> findAllDepartmentAll() {
        return departmentService.findAllDepartment();
    }
}
